#ifndef EQIBCONTROL_H
#define EQIBCONTROL_H

#include <QTabWidget>
#include<QDebug>
#include<QWebView>
#include<QWebSettings>
#include<QStandardPaths>
#include<QNetworkProxyFactory>
#include<QNetworkCookieJar>
#include<QNetworkAccessManager>

namespace Ui {
class EQIBControl;
}
class EQIBWebPage;

class EQIBControl : public QTabWidget
{
    Q_OBJECT

public:
    explicit EQIBControl(QWidget *parent = 0);
    ~EQIBControl();
    void addPage(const QString url);
    EQIBWebPage * createPage(QString title = "loading");
private:
    Ui::EQIBControl *ui;
    void closeEvent(QCloseEvent *event);
    QNetworkCookieJar *cookieJar ;
    QNetworkAccessManager *nam ;
private slots:
    void on_tabClose(int tabIndex);
};

#endif // EQIBCONTROL_H
